package com.ruoyi.iot.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruoyi.iot.domain.IotFuncDict;
import com.ruoyi.iot.mapper.IotFuncDictMapper;
import com.ruoyi.iot.service.IIotFuncDictService;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/*
 * @Description: 功能码对应字典
 */
@RequiredArgsConstructor
@Service
public class IotFuncDictServiceImpl extends ServiceImpl<IotFuncDictMapper, IotFuncDict> implements IIotFuncDictService {
    @Resource
    private IotFuncDictMapper iotFuncDictMapper;
    @Override
    public IotFuncDict getMeasurementDictMap(String functionCode) {
        return iotFuncDictMapper.selectOneByFunCode(functionCode);
//        return iotFuncDictMapper.selectOne(new LambdaQueryWrapper<IotFuncDict>().eq(IotFuncDict::getFunCode, functionCode));
    }
}
